package fiad.model;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.Table;

/**
 *
 * 
 */
@Entity
@Table(name = "kontaktdaten")
@NamedQueries({
    @javax.persistence.NamedQuery(name = "lesenKontaktdaten", query = "Select kontaktdaten FROM Kontaktdaten kontaktdaten WHERE kontaktdaten.id = :kontaktdaten"),
    @javax.persistence.NamedQuery(name = "lesenALLEKontaktdaten", query = "Select kontaktdaten FROM Kontaktdaten kontaktdaten")})
public class Kontaktdaten implements Serializable {

    @Id
    @GeneratedValue
    private Long id;
    private String strasse;
    private String hausnummer;
    private String ort;
    private String plz;
    private String telefon;
    private String mobiltelefon;
    private String email;

    public Kontaktdaten() {
    }

    public Kontaktdaten(String strasse, String hausnummer, String ort, String plz, String telefon, String mobiltelefon, String email) {
        this.strasse = strasse;
        this.hausnummer = hausnummer;
        this.ort = ort;
        this.plz = plz;
        this.telefon = telefon;
        this.mobiltelefon = mobiltelefon;
        this.email = email;
    }

    public Kontaktdaten(long id, String strasse, String hausnummer, String ort, String plz, String telefon, String mobiltelefon, String email) {
        this.id = id;
        this.strasse = strasse;
        this.hausnummer = hausnummer;
        this.ort = ort;
        this.plz = plz;
        this.telefon = telefon;
        this.mobiltelefon = mobiltelefon;
        this.email = email;
    }

    public Long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getHausnummer() {
        return hausnummer;
    }

    public void setHausnummer(String hausnummer) {
        this.hausnummer = hausnummer;
    }

    public String getMobiltelefon() {
        return mobiltelefon;
    }

    public void setMobiltelefon(String mobiltelefon) {
        this.mobiltelefon = mobiltelefon;
    }

    public String getOrt() {
        return ort;
    }

    public void setOrt(String ort) {
        this.ort = ort;
    }

    public String getPlz() {
        return plz;
    }

    public void setPlz(String plz) {
        this.plz = plz;
    }

    public String getStrasse() {
        return strasse;
    }

    public void setStrasse(String strasse) {
        this.strasse = strasse;
    }

    public String getTelefon() {
        return telefon;
    }

    public void setTelefon(String telefon) {
        this.telefon = telefon;
    }
}
